package com.binarysoft.service.user;

import com.binarysoft.service.user.RUserRole;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.InsertProvider;

public interface RUserRoleMapper {
    @Insert({
        "insert into r_user_role (user_id, role_id)",
        "values (#{userId,jdbcType=INTEGER}, #{roleId,jdbcType=VARCHAR})"
    })
    int insert(RUserRole record);

    @InsertProvider(type=RUserRoleSqlProvider.class, method="insertSelective")
    int insertSelective(RUserRole record);
}